<template>
  <header>
    <div style="display: flex">
      <div style="display: flex;width: 40px;height: 40px;margin-right: 5px;margin-top: 15px">
        <router-link to="/index" >
          <img src="../assets/全方位变现.png"> </router-link>

      </div>

      <div style="display: flex;margin-right: 0px" >

        <router-link to="/index" style="text-decoration: none;color: white;font-size:30px;" class="alimama">
          高考数据分析</router-link>
      </div>
    </div>

    <div class="opt-wrapper">
      <el-dropdown :hide-on-click="false">
        <div class="demo-basic--circle">
          <div class="block">
            <el-avatar :size="40" :src="avatar" :class="['avatar-info']">
            </el-avatar>
          </div>
        </div>
        <el-dropdown-menu slot="dropdown" style="margin-top:-30px;margin-left: -40px;"
                          router>
          <el-dropdown-item ><router-link to="/index" style="text-decoration: none"  class="alimama"><i class="el-icon-info"></i>首页</router-link></el-dropdown-item>
          <el-dropdown-item ><router-link to="/center" style="text-decoration: none"  class="alimama"><i class="el-icon-info"></i>个人中心</router-link></el-dropdown-item>
          <el-dropdown-item ><router-link to="/login" style="text-decoration: none"  class="alimama"><i class="el-icon-switch-button"></i>退出登录</router-link>  </el-dropdown-item>
<!--          此处登录状态要刷新-->
        </el-dropdown-menu>
      </el-dropdown>
    </div>
  </header>
</template>

<script>
export default {

  name: "Header",
  data() {
    return {
      avatar: 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png'
    }
  },
  methods:{

  }
}
</script>

<style scoped>
@import "../assets/css/fonts/fonts.css";
.alimama{
  font-family: Alimama ,sans-serif !important;
  font-size:  18px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
/*设定头像图片样式*/
.avatar-info {
  margin-top: 10px;
  margin-right: 40px;
  cursor: pointer;
}
.el-dropdown-menu{
  height: auto;
}
*{
  margin:0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
}
</style>
